-- GENERATED SPELL FOR [Scorching Elemental] --


function spell0_6520(pUnit, Event) --@Scorch,n/a--
pUnit:FullCastSpellOnTarget(13878,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6520', 1500, 1)
end

function Sorts_6520(pUnit, Event)
local choix_sorts_6520 = math.random(0, 0)
if choix_sorts_6520 == 0 then
pUnit:RegisterEvent('spell0_6520', 1, 1)
end
end

function mob6520_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6520', math.random(1500, 3000), 1)
end

function mob6520_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6520_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6520_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6520, 1, 'mob6520_Action')
RegisterUnitEvent(6520, 2, 'mob6520_Leave')
RegisterUnitEvent(6520, 3, 'mob6520_Kill')
RegisterUnitEvent(6520, 4, 'mob6520_Die')
